package com.tianmu.connector.client.eventhandler;

import com.tianmu.connector.server.BinlogConnectorException;
import com.tianmu.connector.server.event.EventEntity;
import com.tianmu.connector.server.event.handler.IEventHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class LogEventHandler implements IEventHandler {

    @Override
    public void process(EventEntity eventEntity) throws BinlogConnectorException {
        log.info(eventEntity.getJsonFormatData());
    }
}
